<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <form action="" method="post">
                {% csrf_token %}
        <label for="">用户名:</label>
        <input type="text" name="username" value="{{ data.username }}">{{ user_form_temp.username.errors }}<br>
        <label for="">密&nbsp;&nbsp;&nbsp;&nbsp;码:</label>
        <input type="text" name="password" value="{{ data.password }}">{{ user_form_temp.password.errors }}<br>
        <label for="">昵&nbsp;&nbsp;&nbsp;&nbsp;称:</label>
        <input type="text" name="nick_name" value="{{ data.nick_name }}">{{ user_form_temp.nick_name.errors }}<br>
        <label for="">手机号:</label>
        <input type="text" name="phone" value="{{ data.phone }}">{{ user_form_temp.phone.errors }}<br>
        <label for="">邮&nbsp;&nbsp;&nbsp;&nbsp;箱:</label>
        <input type="text" name="email" value="{{ data.email }}">{{ user_form_temp.email.errors }}<br>
        <input type="submit" value="注册">
    </form>


{#      直接用forms写表单#}
{#    <form action="" method="post">#}
{#        {{ user_form.as_p }}{{ data }}{{ errors }}#}
{#        {% csrf_token %}#}
{#        <input type="submit" value="注册">#}
{#    </form>#}
</body>
</html>